<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title>句容机关网站管理后台</title>
		<link rel="stylesheet" href="../js-plugin/jquery-ui/jquery-ui.css" type="text/css" />
        <link rel="stylesheet" href="../style/reset.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/style.css" type="text/css" media="screen" />
        <link rel="stylesheet" href="../style/invalid.css" type="text/css" media="screen" />
		<link rel="stylesheet" href="../style/fixed.css" type="text/css" />
        <link rel="stylesheet" href="../style/msgbox.css" type="text/css" />
		<link rel="stylesheet" href="../style/master/InvestEdit.css" type="text/css" />
        
        <script type="text/javascript" src="../js-plugin/jquery-1.7.1.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery-ui/jquery-ui.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.validate.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/additional-methods.min.js">
        </script>
        <script type="text/javascript" src="../js-plugin/simpla.jquery.configuration.js">
        </script>
		<script type="text/javascript" src="../js-plugin/jquery.taconite.3.64.js">
		</script>
		<script type="text/javascript" src="../js-plugin/facebox.js">
        </script>
        <script src="../js-plugin/jquery.easy-confirm-dialog.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.form.js">
        </script>
        <script type="text/javascript" src="../js-plugin/jquery.template.js">
        </script>
        <script src="../js-plugin/tpl.js">
        </script>
        <script src="../js/master/InvestEdit.js">
        </script>
    </head>
    <body>
        <div class="loadingbox clearfix">
        </div>
        <div id="main-content_editor">
            <div class="content-box">
                <div class="content-box-header">
                    <h3>基本信息</h3>
                    <div class="bulk-actions align-right20">
						<a id="SaveFormInvest" class="button SaveBtn">保存问卷</a>
                    </div>
                </div>
                <div class="content-box-content">
                    <div class="tab-content default-tab">
                        <form id="InvestEditor" action="/action/master/SaveInvest" method="post">
                            <input type="hidden" id="Investid" name="id" value="${(invest.id?c)!}" />
							<input type="hidden" id="hidden_status" name="hidden_status" value="${(invest.status?c)!}" />
                            <fieldset>
                                <p>
                                    <label class="inline">问卷标题</label>
                                    <input class="text-input large-input" type="text" id="title" name="title" value="${(invest.title)!}" />
                                </p>
                                <p>
                                    <label class="inline">调查时间</label>
                                    <input class="text-input small-input" type="text" id="starttime" name="starttime" value="${(invest.starttime?default(.now)?date)!}" />
                                    <label class="inline">截止时间</label>
                                    <input class="text-input small-input" type="text" id="endtime" name="endtime" value="${(invest.endtime?default(.now)?date)!}" />
                                    <label class="inline">问卷状态</label>
                                    <select name="status" id="status" class="small-input">
                                        <option value="0">不启用</option>
                                        <option value="1">启用</option>
                                    </select>
                                </p>
                                <p>
                                    <label class="inline">问卷说明</label>
                                    <textarea class="text-input large-input" id="info" name="info">${(invest.info)!}</textarea>
                                </p>
                            </fieldset>
                        </form>
                    </div>
                </div>
            </div>
			<div id="QuesBox" class="content-box">
				<div class="content-box-header">
                    <h3>问题列表</h3>
					<div class="bulk-actions align-right20">
						<a id="addQues" class="button" href="#EidtQues" rel="modal" CONTENT="" CID="-1" TYPE="-1">添加问题</a>
                    </div>
                    <div class="clear"></div>
                </div>
                <div class="content-box-content">
                    <div class="tab-content default-tab">
                    	<table id="QuesList" class="datalist">
                            <thead>
                                <tr>
                                    <th width="50">题号</th>
                                    <th>问题内容</th>
                                    <th width="100">类型</th>
                                    <th width="100">管理</th>
                                </tr>
                            </thead>
                            <tbody>
                            </tbody>
                        </table>
                    </div>
                </div>
			</div>
			<div id="OptionBox" class="content-box">
				<div class="content-box-header">
                    <h3>选项列表</h3>
					<div class="bulk-actions align-right20">
						<a id="addOption" class="button" href="#EidtOption" rel="modal" CONTENT="" CID="-1" >添加选项</a>
                    </div>
                </div>
                <div class="content-box-content">
                    <div class="tab-content default-tab">
                    	<ul id="OptionList">
                    	</ul>
                    </div>
                </div>
			</div>
        </div>
		
		<div id="EidtQues" style="display:none">
            <h3 class="tmp_title_text">添加问题</h3>
            <form id="FormQues" method="post" action="/action/master/SaveInvestQues">
            	<fieldset>
            	<input type="hidden" id="QuesId" name="id" class="QuesId" />
                <p>
                    <label class="inline">问题类型：</label>
                    <select name="type" id="QuesType" class="large-input QuesType">
                        <option value="1">单选题</option>
                        <option value="2">多选题</option>
                    </select>
                </p>
                <p>
                    <label class="inline">问题内容：</label>
                    <textarea id="QuesContent" name="content" class="QuesContent" ></textarea>
                </p>
				<p>
					<input id="SaveFormQues" type="button" class="button SaveFormQues" value="保 存"/>
				</p>
				</fieldset>
            </form>
            <div class="notification png_bg msgbox">
                <a href="#" class="close"><img src="/images/manage/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                <div class="errormsgbox">错误信息</div>
            </div>
        </div>
		
		<div id="EidtOption" style="display:none">
            <h3 class="tmp_title_text">添加选项</h3>
            <form id="FormOption" method="post" action="/action/master/SaveInvestOption">
            	<input type="hidden" id="OptionId" name="id" class="OptionId" />
                <p>
                    <label class="inline">选项内容：</label>
                    <textarea id="OptionContent" name="content" class="OptionContent"></textarea>
                </p>
				<p>
					<input id="SaveFormOption" type="button" class="button SaveFormOption" value="保 存"/>
				</p>
            </form>
            <div class="notification png_bg msgbox">
                <a href="#" class="close"><img src="/images/manage/icons/cross_grey_small.png" title="Close this notification" alt="close" /></a>
                <div class="errormsgbox">错误信息</div>
            </div>
        </div>
    </body>
</html>
